package com.ljy.my_study.spring.循环依赖.bean;

import com.ljy.my_study.spring.循环依赖.annotation.MyAutowired;
import com.ljy.my_study.spring.循环依赖.annotation.MyComponent;

@MyComponent
public class A {

    private String name;

    @MyAutowired
    private B b;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }
}
